let vue = new Vue({
    el: "#login",
    data: {
        email: "903110638@qq.com",
        code: ""
    },
    methods: {
        //发送验证码
        sendCode() {
            axios.get(`employeeLogin/sendCode?email=${this.email}`).then(response => {
                console.log(response);
            })
        },
        //登录验证
        login() {
            axios.get(`employeeLogin/login?email=${this.email}&code=${this.code}`).then(response => {
                console.log(response);
                location.replace("./index.html");
            })
        },

        //激活账号
        active() {
            axios.put(`active?email=${this.email}`).then(response => {
                console.log(response);
            })

        }


    }
});